<%- if attachment = content.ingredient -%>
<%- html_options = local_assigns.fetch(:html_options, {}) -%>
<%= link_to(
  content.essence.link_text.presence ||
    content.settings_value(:link_text, local_assigns.fetch(:options, {})) ||
    attachment.name,
  alchemy.download_attachment_path(
    attachment,
    name: attachment.urlname,
    format: attachment.suffix
  ),
  {
    class: content.essence.css_class.presence,
    title: content.essence.title.presence
  }.merge(html_options)
) -%>
<%- end -%>